import instance from '..'

export function getLoginHttp(a, b) {
  return instance({
    url: `/user/login`,
    method: 'post',
    data: {
      user_name: a,
      user_password: b,
    },
  })
}

export function getNewUserHttp(a, b) {
  return instance({
    url: `/user`,
    method: 'post',
    data: {
      user_name: a,
      user_password: b,
    },
  })
}
